import { createAPI } from './request'

export const homepage = data => createAPI('/api/homepage', 'get', data)
export const list = data => createAPI('/api/getprodlist', 'get', data)

export const add = data => createAPI('/api/addproduct', 'post', data)

export const remove = data =>
  createAPI(`/api/delproduct/${data.id}`, 'get', data)
